// ---------------------------------------------------------------------
//
// -- 规则界面
// -- author £
//
// ---------------------------------------------------------------------

const CommonUtil = require('CommonUtil'),
    superClass = require('AlertWindow');

cc.Class({
    extends: superClass,

    properties: {
        ruleBg: cc.Node,
        scrollView: cc.Node,
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        let UIManager = require('UIManager'),
            deltaH = UIManager.getDeltaH();

        CommonUtil.mysuper(superClass, this, 'onLoad');

        if (deltaH < 0) {
            this.ruleBg.height += deltaH;
            this.scrollView.height += deltaH;
        }
    },

    start () {

    },

    // update (dt) {},
});
